import request from '@/utils/request'
import formurlencoded from 'form-urlencoded'

//每日秒杀首页轮播图类型列表
export function listActFlashBanner(query) {
  return request({
    url: '/admin/actflashbanner/banner/list',
    method: 'get',
    params: query
  })
}
//每日秒杀首页轮播图类型新加
export function createActFlashBanner(data) {
  return request({
    url: '/admin/actflashbanner/banner/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀首页轮播图类型修改取数据
export function editActFlashBanner(query) {
  return request({
    url: '/admin/actflashbanner/banner/edit',
    method: 'get',
    params: query
  })
}
//每日秒杀首页轮播图类型更新
export function updateActFlashBanner(data) {
  return request({
    url: '/admin/actflashbanner/banner/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀首页轮播图类型删除
export function delActFlashBanner(data) {
  return request({
    url: '/admin/actflashbanner/banner/delete',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀首页轮播图类型启用
export function auditYesActFlashBanner(data) {
  return request({
    url: '/admin/actflashbanner/banner/up',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀首页轮播图类型停用
export function auditNoActFlashBanner(data) {
  return request({
    url: '/admin/actflashbanner/banner/down',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀列表
export function listActFlashSale(query) {
  return request({
    url: '/admin/promotion/flash/list',
    method: 'get',
    params: query
  })
}
//每日秒杀下所有的商品
export function listActFlashSaleProduct(query) {
  return request({
    url: '/admin/promotion/flash/product/list',
    method: 'get',
    params: query
  })
}
//每日秒杀新加
export function createActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀修改取数据
export function editActFlashSale(query) {
  return request({
    url: '/admin/promotion/flash/edit',
    method: 'get',
    params: query
  })
}
//每日秒杀更新
export function updateActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀删除
export function deleteActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/delete',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀商品征集
export function recruitstartActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/recruitstart',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀商品征集结束
export function recruitendActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/recruitend',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀详情
export function detailActFlashSale(query) {
  return request({
    url: '/admin/promotion/flash/detail',
    method: 'get',
    params: query
  })
}
//每日秒杀作废取数据
export function abolishActFlashSale(query) {
  return request({
    url: '/admin/promotion/flash/abolish',
    method: 'get',
    params: query
  })
}
//每日秒杀作废
export function doabolishActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/doabolish',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀审核商品取数据
export function auditActFlashSale(query) {
  return request({
    url: '/admin/promotion/flash/audit',
    method: 'get',
    params: query
  })
}
//每日秒杀审核商品详情页
export function auditDetailActFlashSale(query) {
  return request({
    url: '/admin/promotion/flash/auditDetail',
    method: 'get',
    params: query
  })
}
//每日秒杀修改排序取数据
export function toProductSortActFlashSale(query) {
  return request({
    url: '/admin/promotion/flash/toProductSort',
    method: 'get',
    params: query
  })
}
//每日秒杀审核商品
export function doauditActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/doaudit',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀修改排序
export function sortActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/sort',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀上架
export function upActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/up',
    method: 'post',
    data: formurlencoded(data)
  })
}
//每日秒杀下架
export function downActFlashSale(data) {
  return request({
    url: '/admin/promotion/flash/down',
    method: 'post',
    data: formurlencoded(data)
  })
}



//团购类型列表
export function listActGroupType(query) {
  return request({
    url: '/admin/promotion/grouptype/list',
    method: 'get',
    params: query
  })
}
//团购类型新加
export function createActGroupType(data) {
  return request({
    url: '/admin/promotion/grouptype/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购类型修改取数据
export function editActGroupType(query) {
  return request({
    url: '/admin/promotion/grouptype/edit',
    method: 'get',
    params: query
  })
}
//团购类型更新
export function updateActGroupType(data) {
  return request({
    url: '/admin/promotion/grouptype/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购类型删除
export function delActGroupType(data) {
  return request({
    url: '/admin/promotion/grouptype/del',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购类型启用
export function auditYesActGroupType(data) {
  return request({
    url: '/admin/promotion/grouptype/auditYes',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购类型停用
export function auditNoActGroupType(data) {
  return request({
    url: '/admin/promotion/grouptype/auditNo',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购首页轮播图类型列表
export function listActGroupBanner(query) {
  return request({
    url: '/admin/actgroupbanner/banner/list',
    method: 'get',
    params: query
  })
}
//团购首页轮播图类型新加
export function createActGroupBanner(data) {
  return request({
    url: '/admin/actgroupbanner/banner/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购首页轮播图类型修改取数据
export function editActGroupBanner(query) {
  return request({
    url: '/admin/actgroupbanner/banner/edit',
    method: 'get',
    params: query
  })
}
//团购首页轮播图类型更新
export function updateActGroupBanner(data) {
  return request({
    url: '/admin/actgroupbanner/banner/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购首页轮播图类型删除
export function delActGroupBanner(data) {
  return request({
    url: '/admin/actgroupbanner/banner/delete',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购首页轮播图类型启用
export function auditYesActGroupBanner(data) {
  return request({
    url: '/admin/actgroupbanner/banner/up',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购首页轮播图类型停用
export function auditNoActGroupBanner(data) {
  return request({
    url: '/admin/actgroupbanner/banner/down',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购列表初始化数据
export function listActGroupInit(query) {
  return request({
    url: '/admin/promotion/actgroup',
    method: 'get',
    params: query
  })
}
//团购列表
export function listActGroup(query) {
  return request({
    url: '/admin/promotion/actgroup/list',
    method: 'get',
    params: query
  })
}
//团购查看详情
export function lookActGroup(query) {
  return request({
    url: '/admin/promotion/actgroup/look',
    method: 'get',
    params: query
  })
}
//团购更新取数据
export function editActGroup(query) {
  return request({
    url: '/admin/promotion/actgroup/edit',
    method: 'get',
    params: query
  })
}
//团购更新
export function updateActGroup(data) {
  return request({
    url: '/admin/promotion/actgroup/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购结束
export function releaseFinalActGroup(data) {
  return request({
    url: '/admin/promotion/actgroup/releaseFinal',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购审核通过
export function auditYesActGroup(data) {
  return request({
    url: '/admin/promotion/actgroup/auditYes',
    method: 'post',
    data: formurlencoded(data)
  })
}
//团购审核失败
export function auditNoActGroup(data) {
  return request({
    url: '/admin/promotion/actgroup/auditNo',
    method: 'post',
    data: formurlencoded(data)
  })
}


//拼购轮播图类型列表
export function listActBiddingBanner(query) {
  return request({
    url: '/admin/actbiddingbanner/banner/list',
    method: 'get',
    params: query
  })
}
//拼购轮播图类型新加
export function createActBiddingBanner(data) {
  return request({
    url: '/admin/actbiddingbanner/banner/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购轮播图类型修改取数据
export function editActBiddingBanner(query) {
  return request({
    url: '/admin/actbiddingbanner/banner/edit',
    method: 'get',
    params: query
  })
}
//拼购轮播图类型更新
export function updateActBiddingBanner(data) {
  return request({
    url: '/admin/actbiddingbanner/banner/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购轮播图类型删除
export function delActBiddingBanner(data) {
  return request({
    url: '/admin/actbiddingbanner/banner/delete',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购轮播图类型启用
export function auditYesActBiddingBanner(data) {
  return request({
    url: '/admin/actbiddingbanner/banner/up',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购轮播图类型停用
export function auditNoActBiddingBanner(data) {
  return request({
    url: '/admin/actbiddingbanner/banner/down',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购类型列表
export function listActBiddingType(query) {
  return request({
    url: '/admin/promotion/biddingtype/list',
    method: 'get',
    params: query
  })
}
//拼购类型新加
export function createActBiddingType(data) {
  return request({
    url: '/admin/promotion/biddingtype/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购类型修改取数据
export function editActBiddingType(query) {
  return request({
    url: '/admin/promotion/biddingtype/edit',
    method: 'get',
    params: query
  })
}
//拼购类型更新
export function updateActBiddingType(data) {
  return request({
    url: '/admin/promotion/biddingtype/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购类型删除
export function delActBiddingType(data) {
  return request({
    url: '/admin/promotion/biddingtype/del',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购类型启用
export function auditYesActBiddingType(data) {
  return request({
    url: '/admin/promotion/biddingtype/auditYes',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购类型停用
export function auditNoActBiddingType(data) {
  return request({
    url: '/admin/promotion/biddingtype/auditNo',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购列表初始化数据
export function listActBiddingInit(query) {
  return request({
    url: '/admin/promotion/actbidding',
    method: 'get',
    params: query
  })
}
//拼购列表
export function listActBidding(query) {
  return request({
    url: '/admin/promotion/actbidding/list',
    method: 'get',
    params: query
  })
}
//拼购查看详情
export function lookActBidding(query) {
  return request({
    url: '/admin/promotion/actbidding/look',
    method: 'get',
    params: query
  })
}
//拼购更新取数据
export function editActBidding(query) {
  return request({
    url: '/admin/promotion/actbidding/edit',
    method: 'get',
    params: query
  })
}
//拼购更新
export function updateActBidding(data) {
  return request({
    url: '/admin/promotion/actbidding/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购结束
export function releaseFinalActBidding(data) {
  return request({
    url: '/admin/promotion/actbidding/releaseFinal',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购审核通过
export function auditYesActBidding(data) {
  return request({
    url: '/admin/promotion/actbidding/auditYes',
    method: 'post',
    data: formurlencoded(data)
  })
}
//拼购审核失败
export function auditNoActBidding(data) {
  return request({
    url: '/admin/promotion/actbidding/auditNo',
    method: 'post',
    data: formurlencoded(data)
  })
}


//积分商城轮播图类型列表
export function listActIntegralBanner(query) {
  return request({
    url: '/admin/actintegralbanner/banner/list',
    method: 'get',
    params: query
  })
}
//积分商城轮播图类型新加
export function createActIntegralBanner(data) {
  return request({
    url: '/admin/actintegralbanner/banner/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城轮播图类型修改取数据
export function editActIntegralBanner(query) {
  return request({
    url: '/admin/actintegralbanner/banner/edit',
    method: 'get',
    params: query
  })
}
//积分商城轮播图类型更新
export function updateActIntegralBanner(data) {
  return request({
    url: '/admin/actintegralbanner/banner/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城轮播图类型删除
export function delActIntegralBanner(data) {
  return request({
    url: '/admin/actintegralbanner/banner/delete',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城轮播图类型启用
export function auditYesActIntegralBanner(data) {
  return request({
    url: '/admin/actintegralbanner/banner/up',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城轮播图类型停用
export function auditNoActIntegralBanner(data) {
  return request({
    url: '/admin/actintegralbanner/banner/down',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城类型列表
export function listActIntegralType(query) {
  return request({
    url: '/admin/promotion/integraltype/list',
    method: 'get',
    params: query
  })
}
//积分商城类型新加
export function createActIntegralType(data) {
  return request({
    url: '/admin/promotion/integraltype/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城类型修改取数据
export function editActIntegralType(query) {
  return request({
    url: '/admin/promotion/integraltype/edit',
    method: 'get',
    params: query
  })
}
//积分商城类型更新
export function updateActIntegralType(data) {
  return request({
    url: '/admin/promotion/integraltype/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城类型删除
export function delActIntegralType(data) {
  return request({
    url: '/admin/promotion/integraltype/del',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城类型启用
export function auditYesActIntegralType(data) {
  return request({
    url: '/admin/promotion/integraltype/auditYes',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城类型停用
export function auditNoActIntegralType(data) {
  return request({
    url: '/admin/promotion/integraltype/auditNo',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城列表初始化数据
export function listActIntegralInit(query) {
  return request({
    url: '/admin/promotion/actintegral',
    method: 'get',
    params: query
  })
}
//积分商城列表
export function listActIntegral(query) {
  return request({
    url: '/admin/promotion/actintegral/list',
    method: 'get',
    params: query
  })
}
//积分商城查看详情
export function lookActIntegral(query) {
  return request({
    url: '/admin/promotion/actintegral/look',
    method: 'get',
    params: query
  })
}
//积分商城更新取数据
export function editActIntegral(query) {
  return request({
    url: '/admin/promotion/actintegral/edit',
    method: 'get',
    params: query
  })
}
//积分商城更新
export function updateActIntegral(data) {
  return request({
    url: '/admin/promotion/actintegral/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城结束
export function releaseFinalActIntegral(data) {
  return request({
    url: '/admin/promotion/actintegral/releaseFinal',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城审核通过
export function auditYesActIntegral(data) {
  return request({
    url: '/admin/promotion/actintegral/auditYes',
    method: 'post',
    data: formurlencoded(data)
  })
}
//积分商城审核失败
export function auditNoActIntegral(data) {
  return request({
    url: '/admin/promotion/actintegral/auditNo',
    method: 'post',
    data: formurlencoded(data)
  })
}


//专题活动轮播图类型列表
export function listActSpecialBanner(query) {
  return request({
    url: '/admin/actspecialbanner/banner/list',
    method: 'get',
    params: query
  })
}
//专题活动轮播图类型新加
export function createActSpecialBanner(data) {
  return request({
    url: '/admin/actspecialbanner/banner/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动轮播图类型修改取数据
export function editActSpecialBanner(query) {
  return request({
    url: '/admin/actspecialbanner/banner/edit',
    method: 'get',
    params: query
  })
}
//专题活动轮播图类型更新
export function updateActSpecialBanner(data) {
  return request({
    url: '/admin/actspecialbanner/banner/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动轮播图类型删除
export function delActSpecialBanner(data) {
  return request({
    url: '/admin/actspecialbanner/banner/delete',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动轮播图类型启用
export function auditYesActSpecialBanner(data) {
  return request({
    url: '/admin/actspecialbanner/banner/up',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动轮播图类型停用
export function auditNoActSpecialBanner(data) {
  return request({
    url: '/admin/actspecialbanner/banner/down',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动类型列表
export function listActSpecialType(query) {
  return request({
    url: '/admin/promotion/specialtype/list',
    method: 'get',
    params: query
  })
}
//专题活动类型新加
export function createActSpecialType(data) {
  return request({
    url: '/admin/promotion/specialtype/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动类型修改取数据
export function editActSpecialType(query) {
  return request({
    url: '/admin/promotion/specialtype/edit',
    method: 'get',
    params: query
  })
}
//专题活动类型更新
export function updateActSpecialType(data) {
  return request({
    url: '/admin/promotion/specialtype/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动类型删除
export function delActSpecialType(data) {
  return request({
    url: '/admin/promotion/specialtype/del',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动类型启用
export function auditYesActSpecialType(data) {
  return request({
    url: '/admin/promotion/specialtype/auditYes',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动类型停用
export function auditNoActSpecialType(data) {
  return request({
    url: '/admin/promotion/specialtype/auditNo',
    method: 'post',
    data: formurlencoded(data)
  })
}

//专题活动列表
export function listActSpecial(query) {
  return request({
    url: '/admin/promotion/special/list',
    method: 'get',
    params: query
  })
}
//专题活动下所有的商品
export function listActSpecialProduct(query) {
  return request({
    url: '/admin/promotion/special/product/list',
    method: 'get',
    params: query
  })
}
//专题活动下添加页面取分类
export function addActSpecial(query) {
  return request({
    url: '/admin/promotion/special/add',
    method: 'get',
    params: query
  })
}
//专题活动新加
export function createActSpecial(data) {
  return request({
    url: '/admin/promotion/special/create',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动修改取数据
export function editActSpecial(query) {
  return request({
    url: '/admin/promotion/special/edit',
    method: 'get',
    params: query
  })
}
//专题活动更新
export function updateActSpecial(data) {
  return request({
    url: '/admin/promotion/special/update',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动删除
export function deleteActSpecial(data) {
  return request({
    url: '/admin/promotion/special/delete',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动商品征集
export function recruitstartActSpecial(data) {
  return request({
    url: '/admin/promotion/special/specialrecruitstart',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动商品征集结束
export function recruitendActSpecial(data) {
  return request({
    url: '/admin/promotion/special/specialrecruitend',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动详情
export function detailActSpecial(query) {
  return request({
    url: '/admin/promotion/special/detail',
    method: 'get',
    params: query
  })
}
//专题活动作废
export function doabolishActSpecial(data) {
  return request({
    url: '/admin/promotion/special/abolish',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动审核商品
export function doauditActSpecial(data) {
  return request({
    url: '/admin/promotion/special/doaudit',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动修改排序
export function sortActSpecial(data) {
  return request({
    url: '/admin/promotion/special/sortIsTop',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动上架
export function upActSpecial(data) {
  return request({
    url: '/admin/promotion/special/specialup',
    method: 'post',
    data: formurlencoded(data)
  })
}
//专题活动下架
export function downActSpecial(data) {
  return request({
    url: '/admin/promotion/special/specialdown',
    method: 'post',
    data: formurlencoded(data)
  })
}
